package cn.assumejson.springframework.beans.factory.support;

import cn.assumejson.springframework.beans.MutablePropertyValues;
import cn.assumejson.springframework.beans.PropertyValues;

/**
 * @Author Mr. Li
 * @Date 2021/11/29 22:50
 * @Version 1.0
 */
public class RootBeanDefinition extends AbstractBeanDefinition {

    public RootBeanDefinition(Class<?> beanClass) {
        super(new MutablePropertyValues());
        setBeanClass(beanClass);
    }

    public RootBeanDefinition(Class<?> beanClass, PropertyValues propertyValues) {
        super(propertyValues == null ? new MutablePropertyValues() : propertyValues);
        setBeanClass(beanClass);
    }
}
